<template>
  <div id="app">
    <transition name="fade">
        <router-view/>
    </transition>
  </div>
</template>

<script>
import reset from 'reset-css';

export default {
  name: 'App',
  methods: {
    loadAllAdvisor(){
            // /backstage/account/findAllAdvisor
            var campusId = JSON.parse(localStorage.getItem('responseData')).account.campusId;
            var allAdvisorURL = window.baseURL + "/backstage/account/findAllAdvisor?token="+this.$token+"&campusId="+campusId;
            this.$http.get(allAdvisorURL)
            .then((response)=>{
                // this.allAdvisor = response.data.data;
                localStorage.setItem('advisor',JSON.stringify(response.data.data))
            })
        },
  },
  created(){
    var types = ['education','occupation','social_status','source','grade']
    for(var i=0;i<types.length;i++){
       this.loadDataWithType(types[i]);
    }
    this.loadAllAdvisor();
  },
  beforeDestroy(){
  }
}
</script>

<style lang="scss" scoped>
* {
  padding: 0;
  margin: 0;

}

#app {
   background: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}
</style>
